﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Video.Application.Contract;
using Video.Application.Contract.UserInfos.Dtos;
using Video.Application.Contract.Videos;
using Video.Application.Videos;
using Video.Domain;
using Video.Domain.Users;

namespace Video.Application.AutuMapperProfile
{
    public class UserInfoAutuMapperProfile:Profile
    {
        public UserInfoAutuMapperProfile()
        {
            CreateMap<UserInfo, UserInfoDto>().ReverseMap();
            CreateMap<UserInfoRoleView, UserInfoRoleDto>();
            CreateMap<Role, RoleDto>();
            CreateMap<RegisterInput, UserInfo>();
            CreateMap<UserInfo,UserInfoRoleDto>();
            CreateMap<Role, UserInfoRoleDto>();
        }
    }
}
